﻿@if(HttpContext.Current.Session["UserName"] != null) {
    <text>Welcome <strong>@HttpContext.Current.Session["UserName"].ToString()</strong>!
    [ @Html.ActionLink("Log Off", "LogOff", "Account") ]</text>
}
else {
    @:[ @Html.ActionLink("Log On", "LogOn", "Account") ]
}